package com.example.springbootdemo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 *  返回结果状态码枚举
 * </p>
 *
 * @author yurenwei
 * @since 2023/9/5
 */
@Getter
@AllArgsConstructor
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201, "失败");

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 信息
     */
    private String message;

}
